package teste;

import javax.swing.JOptionPane;

import org.springframework.beans.factory.annotation.Autowired;

import model.Aluno;

public class ExemploSpring {
	@Autowired
	private Aluno aluno;
	
	public void mostrarNome(){
		aluno.setNome("Athos");
		JOptionPane.showMessageDialog(null, "Nome: "+aluno.getNome());
	}
	
	public void mostrarNomePadrao(){
		JOptionPane.showMessageDialog(null, "Nome: "+aluno.getNome());
	}
}
